home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
CD ROM Paradise Collection 4
/
CD ROM Paradise Collection 4 1995 Nov.iso
/
bbs
/
kbalarm.zip
/
KBALARM.PPE
(
.txt
)
< prev
Wrap
PCBoard Programming Language Executable
|
1995-01-12
|
2KB
|
192 lines
;------------------------------------------------------------------------------
; .ss.
; `²²'
; .,sS$Ss,,s$ .,sS$$$Ss. .,sS$Ss,,s$ .ss. .sSs.
; .d$$²^°²$$$$'.d$P²°^^²$P'.d$$²^°²$$$$'.$$$' .$$$²Sb,.
; $$$' .$$$' $$$²Sçsµ²' .$$$' .$$$'.$$$' .$$$' `$$b.
; $$$b,,d$$$' ,$$$b,....,s$$$$b,,d$$$'.$$$;.,$$$' ;$$$
; `²S$$S²²S$$S²°²S$$$$S²°°²S$$$$$$',$$S²°²S$S'.sS$$$P²'
; .sS²°$$$²²°"' d²°'
; .$$² .$$'
; $$$.,d$$'
; `²S$$S²'
;------------------------------------------------------------------------------
; P.P.L.X. 2.OO (C)1996 - Lone Runner / AEGiS CoRP'96
;------------------------------------------------------------------------------
; PPE 3.O1 (Encryption type I) - Analysis ON - Postprocessing ON
;------------------------------------------------------------------------------
Boolean BOOLEAN001
Integer INTEGER001
Integer INTEGER002
Integer INTEGER003
Integer INTEGER004
Integer INTEGER005
Integer INTEGER006
Integer INTEGER007
Integer INTEGER008
String STRING001
String STRING002
String STRING003
String STRING004
String STRING005
;------------------------------------------------------------------------------
BOOLEAN001 = 0
STRING002 = 0
WrUNet PcbNode(), "Executing KBAlarm.PPE.. in process of Logon:", U_Name(), U_City, "", ""
If (Exist(PPEPath() + "KBalarm.cfg") > 0) Then
FOpen 1, PPEPath() + "KBalarm.cfg", 0, 0
FGet 1, INTEGER008
FGet 1, STRING002
If ((String(STRING002) == "n") || (String(STRING002) == "N")) Then
STRING002 = 0
Else
STRING002 = 1
Goto LABEL001
Else
Endif
:LABEL001
STRING003 = ""
INTEGER006 = ""
STRING005 = String(ReadLine(PCBDat(), 94))
For INTEGER007 = 1 To 40
STRING004 = Mid(STRING005, INTEGER007, 1)
INTEGER005 = Asc(STRING004)
INTEGER006 = INTEGER006 + INTEGER005
Next
If (INTEGER008 <> (INTEGER006 * Len(Strip(STRING005, " "))) * 8 - 3187) Then
Goto LABEL002
Else
BOOLEAN001 = 1
Endif
Goto LABEL003
:LABEL002
BOOLEAN001 = 0
:LABEL003
If (STRING002 && BOOLEAN001) Then
Goto LABEL004
Else
FreshLine
PrintLn "@X03KBalarm.PPE 1.1 By:Saudi BBS! @X07+9662 667-2293"
Endif
:LABEL004
If (BOOLEAN001) Goto LABEL005
Print "@X0ARegistered to: @X0FUnregistered Evaluation Copy!"
Delay 91
Goto LABEL006
Goto LABEL004
:LABEL005
If (BOOLEAN001 && !STRING002) Then
PrintLn "@X0FRegistered to: @X0C" + STRING005
Endif
:LABEL006
DefColor
GetToken INTEGER001
If (INTEGER001 <= 0) Then
INTEGER001 = 900
Endif
GetToken INTEGER002
If (INTEGER002 <= 0) Then
INTEGER002 = 4
Endif
GetToken INTEGER003
If (INTEGER003 <= 0) Then
INTEGER003 = 800
Endif
GetToken INTEGER004
If (INTEGER004 <= 0) Then
INTEGER004 = 4
Endif
:LABEL007
FGet 1, STRING001
If (U_Name() == Upper(STRING001)) Goto LABEL008
If (String(STRING001) == "") End
Goto LABEL007
FClose 1
End
:LABEL008
Beep
End
Endif
Newline
PrintLn "@BEEP@@X0CSysop: @X0F@X0BKBalarm.cfg @X0Ffile is missing, Please check KBalarm.doc"
Newline
End
;------------------------------------------------------------------------------
;
; Usage report (before postprocessing)
;
; ■ Statements used :
;
; 4 End
; 24 Goto
; 18 Let
; 1 Print
; 3 PrintLn
; 13 If
; 1 FOpen
; 1 FClose
; 3 FGet
; 1 DefColor
; 1 Delay
; 2 Newline
; 4 GetToken
; 1 Beep
; 1 WrUNet
; 1 FreshLine
;
;
; ■ Functions used :
;
; 2 *
; 5 +
; 1 -
; 4 ==
; 1 <>
; 1 <
; 5 <=
; 1 >
; 2 >=
; 12 !
; 4 &&
; 2 ||
; 1 Len(
; 1 Upper()
; 1 Mid()
; 1 Asc()
; 2 U_Name()
; 1 Strip()
; 4 String()
; 1 PCBDat()
; 2 PPEPath()
; 1 PcbNode()
; 1 ReadLine()
; 1 Exist()
;
;------------------------------------------------------------------------------
;
; Analysis flags : d
;
; d - Access PCBOARD.DAT ■ 2
; Program gets the full pathname to PCBOARD.DAT, this may be usefull
; for many PPE so they can find various informations on the system
; (system paths, max number of lines in messages, ...) but it may also
; be a way to gather vital informations.
; ■ Search for : PCBDAT()
;
;------------------------------------------------------------------------------
;
; Postprocessing report
;
; 1 For/Next
; 0 While/EndWhile
; 9 If/Then or If/Then/Else
; 0 Select Case
;
;------------------------------------------------------------------------------
; AEGiS Corp - Break the routines, code against the machines!
;------------------------------------------------------------------------------